using System.Collections.Generic;
using System.Threading.Tasks;
using Comteck.Dto.Sys;

namespace Comteck.Ktt.Services.Sys {
  /// <summary>
  /// 
  /// </summary>
  public interface IParameterService : IScopedDependency {
    /// <summary>
    /// 查询全部列表
    /// </summary>
    /// <returns></returns>
    Task<IEnumerable<ParameterDto>> GetAllAsync();

    /// <summary>
    /// 获取参数值
    /// </summary>
    /// <param name="enumParameter"></param>
    /// <returns></returns>
    Task<string> GetValueAsync(EnumParameter enumParameter);

    /// <summary>
    /// 批量更新
    /// </summary>
    /// <param name="list"></param>
    /// <returns></returns>
    Task SaveBatchAsync(IEnumerable<ParameterDto> list);
  }
}

